<?php
if($this->pageCount){
	$params = Zend_Controller_Front::getInstance()->getRequest()->getParams();
	//remove the system parameters
	unset($params['module']);
	unset($params['action']);
	unset($params['controller']);
?>
<div class="paginationControl">
<!-- previous page link -->
<?php if(isset($this->previous)){?>
<a href="<?php echo $this->url(array_merge($params, array('page' => $this->previous)));?>">&lt; Previous</a> |
<?php }else{?>
<span class="disable">&lt; Previous</span> | 
<?php }?>

<!-- numbered link page -->
<?php foreach($this->pagesInRange as $page){?>
	<?php if($this->current != $page){?>
		<a href="<?php echo $this->url(array_merge($params, array('page' => $page)));?>"> <?php echo $page?></a> |
	<?php }else{?>
		<?php echo $page?> | 
	<?php }?>
<?php }?>

<!-- next page link -->
<?php if(isset($this->next)){?>
<a href="<?php echo $this->url(array_merge($params, array('page' => $this->next)));?>">Next &gt;</a>
<?php }else{?>
<span class="disable">Next &gt;</span> 
<?php }?>

</div>
<?php }?>